import * as types from "../action-types";

export default {
  setConfig(config) {
    if (config.web4)
      config.web4.host = config.web4.host ? config.web4.host : location.host;
    return {
      type: types.SET_CONFIG,
      payload: config,
    };
  },
};
